package com.rmb.system.controller;

import com.github.pagehelper.PageInfo;
import com.rmb.mart.entity.linxi.RmbSystemOperationLog;
import com.rmb.mart.entity.linxi.vo.RmbSystemOperationLogVo;
import com.rmb.system.service.RmbSystemOperationLogService;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;

/**
 * (RmbSystemOperationLog)表控制层
 *
 * @author makejava
 * @since 2021-01-20 15:17:36
 */
@RestController
@RequestMapping("rmbSystemOperationLog")
public class RmbSystemOperationLogController {
    /**
     * 服务对象
     */
    @Resource
    private RmbSystemOperationLogService rmbSystemOperationLogService;

    /**
     * 通过主键查询单条数据
     *
     * @param id 主键
     * @return 单条数据
     */
    @GetMapping("selectOne")
    public RmbSystemOperationLog selectOne(Long id) {
        return this.rmbSystemOperationLogService.queryById(id);
    }

    /**
     * 查新操作列表
     * @param rmbSystemOperationLogVo 分页数据
     * @return 列表
     */
    @PostMapping("findList")
    public PageInfo<RmbSystemOperationLog> findList(@RequestBody RmbSystemOperationLogVo rmbSystemOperationLogVo){
        return rmbSystemOperationLogService.findList(rmbSystemOperationLogVo);
    }
}